﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace xuyiying
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
            this.IsMdiContainer = true;
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            Form1 obj = new Form1();
            obj.ShowDialog();
            if (Form1.login == false)
            {
                Application.Exit();
            }
        }

        private void toolStripMenuItem6_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void toolStripMenuItem7_Click(object sender, EventArgs e)
        {
            frmClass1Add obj = new frmClass1Add();
            obj.MdiParent = this;
            obj.Show();
        }

        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {

        }

        private void toolStripMenuItem8_Click(object sender, EventArgs e)
        {
            FrmCrouseAdd obj = new FrmCrouseAdd();
            obj.MdiParent = this;
            obj.Show();
        }

        private void toolStripMenuItem9_Click(object sender, EventArgs e)
        {

            frmTeacherAdd obj = new frmTeacherAdd();
            obj.MdiParent = this;
            obj.Show();
        }

        private void toolStripMenuItem15_Click(object sender, EventArgs e)
        {
            frmClassSel obj = new frmClassSel();
            obj.MdiParent = this;
            obj.Show();
        }

        private void toolStripMenuItem14_Click(object sender, EventArgs e)
        {
            frmClassUD obj = new frmClassUD();
            obj.MdiParent = this;
            obj.Show();
        }

        private void toolStripMenuItem16_Click(object sender, EventArgs e)
        {
            frmStudentSel obj = new frmStudentSel();
            obj.MdiParent = this;
            obj.Show();
        }

        private void toolStripMenuItem17_Click(object sender, EventArgs e)
        {
            frmStudentUD obj = new frmStudentUD();
            obj.MdiParent = this;
            obj.Show();
        }

        private void toolStripMenuItem10_Click(object sender, EventArgs e)
        {
            frmTeacherSUD obj = new frmTeacherSUD();
            obj.MdiParent = this;
            obj.Show();
        }
    }
}
